package com.common.help.test05;

public class Test1 {

	public static void main(String[] args) {
		Leaf l = new Leaf();
		//for(int i=0;i<2;i++)
		l.increase().increase().print();
	}
}

class Leaf{
	
	private int i;
	
	Leaf increase(){
		++i;
		return this;
	}
	
	public void print(){
		System.out.println(i);
	}
}
